/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.DragonPokerClient.Thread.ClientRequest;


import org.Comunicator.Message;
import org.DragonPokerClient.Client;

/**
 *
 * @author davide
 */
public class RegisterReplyRequest extends GenericClientRequest{

        private Client client;
    public RegisterReplyRequest(Client c) {
        client = c;
    }
    @Override
    public void processRequest(Message message) {
        System.out.println("CLIENT-RegisterReply");
        boolean reply = (Boolean)message.getParameters().get("Reply");
        System.out.println("CLIENT: Risposta: " + reply);
    }

    @Override
    public boolean isToProcessing(Message message) {
        if("RegisterReply".equals(message.getAction()) == true)
            return true;
        return false;
    }

}
